package com.hmall.order.config;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Configuration;

/**
 * @Description JsonConfig
 * @Author zhengyuan&junjun
 * @Date 2024-11-15
 */
@Configuration
public class JsonConfig {

public ObjectMapper objectMapper(){
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.configure(DeserializationFeature.USE_BIG_INTEGER_FOR_INTS,true);
    return  objectMapper;

}

}
